#ifndef __QUANTITY_H__
#define __QUANTITY_H__
#include <ostream>
#include <Format.h>
#include <Unit.h>

class Quantity
{
public:
    bool operator==(const Quantity & quant) const;
    bool operator!=(const Quantity & quant) const;
    void toString(std::ostream & os, const Format &format);
  
protected:
    Quantity(double value, const Unit& unit);
    double getSumOfBaseUnit(const Quantity& quant) const;
    
private:
    double value_m;
    const Unit &unit_m;
};
#endif

